from django.contrib import admin
from feeds.models import Feed, Entry, Subscription, EntryRead

class SubscriptionInline(admin.TabularInline):
	model = Subscription
	extra = 1

class EntryReadInline(admin.TabularInline):
	model = EntryRead
	extra = 1

class FeedAdmin(admin.ModelAdmin):
	inlines = (SubscriptionInline, )

class EntryAdmin(admin.ModelAdmin):
	inlines = (EntryReadInline, )

admin.site.register(Feed, FeedAdmin)
admin.site.register(Entry, EntryAdmin)
